package com.zephyr.vchcenter.bpm.decision;

import org.apache.log4j.Logger;

import com.hiaward.bpm.context.ServiceContext;
import com.hiaward.bpm.exception.ParameterException;
import com.hiaward.bpm.exception.RuleException;
import com.hiaward.bpm.exception.ServiceException;
import com.hiaward.bpm.rule.Decision;

public class IdentifyVerifyDecisionHandler extends Decision {

	private static Logger log = Logger.getLogger(IdentifyVerifyDecisionHandler.class);
	@Override
	public void exceptionHandle(ServiceContext arg0) {

	}

	@Override
	public String make(ServiceContext arg0) throws RuleException,
			ServiceException, ParameterException {
		log.debug("�ж���进入IdentifyVerifyDecisionHandler-------------->");
		String vchsid = (String) arg0.getInputParameterValue("vchsid");
		String verifyResult = (String) arg0.getInputParameterValue("verifyResult");
		
		if ("1".equals(verifyResult)) {
			log.debug("返回验印-------->");
			return "to identify";
		}else{
			log.debug("复核通过------------->");
			return "to join1";
		}
	}

}
